﻿<!--{inc(header.view.html)}-->

<div class="content" id="content">
	<div class="top-menu-box">
    	<div class="z">
            <span class="z-f"><a href="#">网站设置</a>&nbsp;&gt;</span>
            <span class="z-f"><a href="#">投票列表</a></span>
            <div class="z-f-r"><span class="user-t"><a href="{$site_url}"  target="_blank">网站首页</a></span><span class="user-info"></span><a href="index.php?app=default&act=quit" onClick="return confirm('确认退出管理系统吗？');"   >退出管理</a></div>
        </div>
        <div class="top-menu">
        	<ul>
            	<li class="current"><a href="#">投票列表</a></li>
                                                 <li><a href="index.php?app=vote&act=add"  target="mainframe">创建投票</a></li>
												 
            </ul>
            <div class="clear"></div>
        </div>
    </div>
    
    <div class="main">

    <table  class="data" >
        <thead>
	
	<th>序号</th>
	<th>投票项目</th>
	<th>描 述</th>
	<th>删 / 改 / 查看 / 获取代码</th>	
		
        </thead>
	    <tbody>
		
<?php foreach($lw_data as $_key => $_value ) { ?>
<tr>
	<td>{$_value.cid}</td>
	<td>{$_value.name}</td>
	<td>{$_value.about}</td>
	<td>
	    <a href="?app=vote&act=del&cid={$_value.cid}&aid={$_value.aid}"  onclick="return confirm('删除后不可恢复,你确实要删除吗?')">删除</a> 
        / <a href="?app=vote&act=edit&cid={$_value.cid}" target="mainframe">修改</a> 
		/ <a href="{SITE_URL}/?app=vote&act=show&cid={$_value.cid}" target="_blank">浏览</a> 
        / <input type="hidden" name="hiddenField" value='<SCRIPT src="{SITE_URL}/?app=vote&act=js&cid={$_value[cid]}"></SCRIPT>' id="jb_{$_value[cid]}">
		<a href="#" onClick="JM_cc('jb_{$_value[cid]}');alert('代码复制成功，你可以粘贴在网页里需要显示的地方,即可显示！')">获取JS代码</a>
	</td>
</tr>

<?php } ?>

  <SCRIPT LANGUAGE="JavaScript">
<!--
function JM_cc(ob){
var obj=document.getElementById(ob); if (obj) { 
obj.select();js=obj.createTextRange();js.execCommand("Copy");}
}
//-->
</SCRIPT>

<style type="text/css">

.p_bar {
margin-top:5px;
}
.p_info {
border:1px solid #CCCCCC;
margin:0 3px;
padding:3px 5px;
text-align:center;
}
.p_curpage {
border:1px solid #CCCCCC;
color:#FF0000;
font-weight:bold;
margin:0 2px;
padding:3px 5px;
text-align:center;
}

.p_num  {
border:1px solid #CCCCCC;
margin:0 3px;
padding:3px 5px;
text-align:center;
}
.p_redirect {
border:1px solid #CCCCCC;
margin:0 3px;
padding:3px 5px;
text-align:center;
}

a {
color:#003366;
text-decoration:none;
}


</style>

<tr>
	<td colspan="5">
    <div class="p_bar">
    <span class="p_info">Total: <b>{$lw_page.total}</b>  共{$lw_page.curr.num}/{$lw_page.totalpage}页</span>
    <a class="p_num" href="{$lw_page.head}">首页</a>
    <a class="p_num" href="{$lw_page.up}"><<</a>
    <a class="p_num" href="{$lw_page.up}">上一页</a>
    <span class="p_curpage">{$lw_page.curr.num}</span>
    <a  class="p_num" href="{$lw_page.down}">下一页</a>
    <a  class="p_num" href="{$lw_page.down}">>></a>
    <a  class="p_num" href="{$lw_page.foot}">末页</a>    
    
    </div>
    </td>
</tr>


	    </tbody>
    </table>
	

	
        
        <div class="notic"><img  src="{$web_view_dir}style/images/light.gif" align="absmiddle" /> <b>提示: </b> <span ></span> </div>
    </div>
</div>
<!--{inc(footer.view.html)}-->